﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HttpVia
{
    public partial class ToolBox : Form
    {
        public ToolBox()
        {
            InitializeComponent();
        }

        private void listView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            Tools.PingTool pingTool = new Tools.PingTool();
            panel1.Controls.Add(pingTool); 
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            Tools.IExplorerTool explorerTool = new Tools.IExplorerTool();
            panel1.Controls.Clear();
            panel1.Controls.Add(explorerTool);
        }

        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            Tools.GetCodeTool getCodeTool = new Tools.GetCodeTool();
            panel1.Controls.Clear();
            panel1.Controls.Add(getCodeTool);
        }

        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            Tools.WhoisTool whoisTool = new Tools.WhoisTool();
            panel1.Controls.Clear();
            panel1.Controls.Add(whoisTool);
        }
    }
}
